{% extends 'back/base.html' %}

{% block body %}
<div class="container" style="height: 1000px;width: 90%">
    <form action="{{ url_for('back.get_text') }}" method="POST" name="login_user_form">
        <div class="form-group row">
            <label class="col-form-label" for="title">标题</label>
            <div class="col-sm-7">
                <input id="title" name="title" type="text" required>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-form-label" for="keyword">关键字</label>
            <div class="col-sm-7">
                <input id="keyword" name="keyword" type="text">
            </div>
        </div>

        <div class="form-group row">
            <label class="col-form-label" for="article_type">类型</label>
            <div class="col-sm-7">
                <input id="article_type" name="article_type" type="text">
            </div>
        </div>

        <textarea name="content"></textarea>
        <input class="btn btn-primary" id="submit" name="submit" style="width: 100px" type="submit" value="sign in">
    </form>


</div>
<script>
    CKEDITOR.replace('content', {
        height: 500,
        {#filebrowserBrowseUrl: 'static/imageupload',#}
        {#filebrowserImageBrowseUrl: 'static/imageupload',#}
        filebrowserUploadUrl: '{{ url_for('back.fileupload') }}',
        filebrowserImageUploadUrl: '{{ url_for('back.imageupload') }}'
    });
</script>
{% endblock %}



